Show:

ia.MapData Class

Defined in: ia\data\MapData.js:1
Module: ia

Contains information about a map file which has been published through the InstantAtlas publisher.

Constructor

ia.MapData

()

Methods

_parseLayerProperties

(
  • data
  • layer
)
private

Parses layer properties.

Parameters:

addEventListener

(
  • eventType
  • fnc
  • obj
)

Add an event listener.

Parameters:

  • eventType String

    The type of event to listen for.

  • fnc Function

    The function to call when the event occurs.

  • obj Object

    An optional parent object.

dispatchEvent

(
  • event
)

Dispatch an event to the listeners.

Parameters:

  • event Object

    The event object.

getLayer

(
  • id
)
ia.LayerBase

Returns the layer that corresponds to the id.

Parameters:

  • id String

    The layer id.

Returns:

ia.LayerBase: The layer for the given id.

loadVisibleLayers

()

Loads the visible data layers.

parseData

(
  • url
  • callbackFunction
)

Loads and parses the source file then calls the given function with the ReportConfig object as the first parameter.

Parameters:

  • url String

    The url to the data.

  • callbackFunction Function

    The call back function.

parseData

(
  • data
  • callbackFunction
)

Updates the data.

Parameters:

  • data JSON

    The raw data.

  • callbackFunction Function

    The call back function.

removeListener

(
  • obj
)

Removes all event listeners for the given object.

Parameters:

  • obj Object

    The object.

Properties

baseLayer

ia.LayerBase

The current base layer.

baseLayers

ia.LayerBase[]

Base layers.

googleApiKey

String

The google map api key.

googleMapType

String

The google map type.

iconLayers

ia.LayerBase[]

Icon layers.

layers

ia.LayerBase[]

All layers.

mapBBox

ia.BoundingBox

The maps bounding box.

noneBaseLayers

ia.LayerBase[]

None Base layers.

path

String

The directory path to the data source.

Default: ""

template

String

The template number.

tilePath

String

The path to tiles for tile layers.

url

String

The url of the data source.

useGoogleMaps

Boolean

Set to true if using google maps.

Default: false

version

String

The version number.